<template>
    <div class="m-crumbs">
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">{{$store.state.geo.position.city.replace('市','')}}美团</el-breadcrumb-item>
            <el-breadcrumb-item :to="{path: '/'}">{{$store.state.geo.position.city}}{{type}}</el-breadcrumb-item>
            <el-breadcrumb-item>{{$store.state.geo.position.city.replace('市','')}}{{decodeURIComponent(keyword)}}</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
</template>

<script>
export default {
    props: {
        type: {
            type: String,
            default: ''
        },
        keyword: {
            type: String,
            default: ''
        }
    }
}
</script>

<style lang="scss">
    .m-crumbs {
        width: 100%;
        .el-breadcrumb {
            font-size: 12px;
            color: #222;
            line-height: 17px;
            font-weight: normal;
            .el-breadcrumb__inner.is-link {
                font-weight: normal;
                &:hover {
                    color: #13D1BE;
                }
            }
        }
    }
</style>


